<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="author" content="逯灿灿">
    <title>透明度</title>
    <style>
        *{
            box-sizing: border-box;
        }
        body{
            margin: 0;
            padding: 0;
        }
        .whole{
            width: 1010px;
            height: 410px; 
            margin: 100px auto;
        }
        .whole-img{
            width: 1010px;
            height: 410px;
            margin: 0;
            padding: 0;
            border: 1px solid black;
            display: flex;
            flex-wrap: wrap;
        }
        .whole-img li{
            list-style: none;
        }
        .whole-img li img{
            width: 195px;
            height: 195px;
            margin: 3px;
            opacity: 0.5;
        }
        .whole-img li img:hover{
            opacity: 1;
        }
    </style>
</head>

<body>
    <div class="whole">
        <ul class="whole-img">
            <li><a href="#"><img src="./img/1.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/2.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/3.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/4.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/5.png" alt=""></a></li>
            <li><a href="#"><img src="./img/6.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/7.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/8.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/9.jpg" alt=""></a></li>
            <li><a href="#"><img src="./img/10.jpg" alt=""></a></li>
        </ul>
    </div>
</body>

</html>